package com.fhz.day00502.model;


import androidx.lifecycle.LiveData;

import com.fhz.day00502.entity.Banner;
import com.fhz.day00502.server.ServerApi;
import com.fhz.day00502.utils.ApiResponse;
import com.fhz.day00502.utils.RetrofitManger;

import java.util.List;

/**
 * 时间:2022/5/23
 *
 * @author msfeng
 * 简述: TODO
 */
public class FoodModel {

    //网络请求数据
    public  LiveData<ApiResponse<List<Banner>>> getFood(){
        ServerApi serverApi = RetrofitManger.getInstance().getRetrofit().create(ServerApi.class);
       return serverApi.getFood();

    }


}

